package drh.test;

import java.util.List;


import drh.bean.OrderDetail;
import drh.dao.OrderDetailDao;
import drh.dao.impl.OrderDetailDaoImpl;

public class testorderdetail {
	static OrderDetailDao dao = new OrderDetailDaoImpl();
	public static void main(String[] args) {
		getOrderDetailPaging();
		//dao.deleteOrderDetailById(4);
		//dao.addOrderDetail(new OrderDetail(6,6,6,6,"2008-08-08",6));
		//dao.updateOrderDetail(new OrderDetail(6,9,9,9,9,"2009-09-09",6));
	}
	
	private static void getOrderDetailPaging() {
		List<OrderDetail> getOrderDetailPaging = dao.GetOrderDetailPaging(1,2);
		for (OrderDetail orderdetail : getOrderDetailPaging) {
			System.out.println(orderdetail);
		}
	}
	
}
